home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / self / contrib.lha / contrib / 491 / aa / test8.self < prev    next >
Encoding:
Text File  |  1993-07-13  |  2.4 KB  |  82 lines

  1. " X window --- AAWindow tests. "
  2. "
  3. *
  4. * This should open up a window on the given host (should really prompt, or check
  5. * out the $DISPLAY variable). The window should refresh itself if you run the
  6. * disp wpe line repeatedly.
  7. * test8.self,v 1.6 1993/07/13 21:47:04 richards Exp
  8. *
  9. * test8.self,v
  10. # Revision 1.6  1993/07/13  21:47:04  richards
  11. # July 13 checkin.
  12. #
  13. # Revision 1.5  1993/06/24  21:24:33  richards
  14. # Split drawing out of boites and into light weight views.
  15. #
  16. # Revision 1.4  1993/06/18  21:25:42  richards
  17. # Moved font support into viewManager.
  18. # Starting to add selection stuff into window and boite.
  19. # Boites refer properly back to the polynomial structures.
  20. #
  21. # Revision 1.3  1993/06/03  21:33:16  richards
  22. # Fixed up the redrawing of the subviews. Turned out they were being drawn off the screen
  23. # due to faulty thinking about where the areas really were.
  24. #
  25. # Revision 1.2  1993/06/02  21:17:08  richards
  26. # I am slowly dealing with window redrawing and resizing requests and getting deeper
  27. # into navel and X. The problem is either too many configureNotify requests, or not enough
  28. # of them. Also, there seems to be some kind of problem filing window.self in twice.
  29. #
  30. # Revision 1.1  1993/05/31  15:00:14  richards
  31. # Changed the view to be two views: topView and an equationView. topView is divided up nicely.
  32. #
  33. # Revision 1.1  1993/05/31  00:12:18  richards
  34. # May 30 checkin. Font support is nearly debugged.
  35. # Make use of glue now.
  36. # Added rational (fraction) types.
  37. #
  38. * Revision 1.2  1993/05/30  21:47:01  richards
  39. * Tests include newerX and navel in the tests.
  40. *
  41. # Revision 1.1  1992/08/19  02:02:34  richards
  42. # Initial revision
  43. #
  44. *
  45. *
  46. "
  47.  
  48. _AddSlotsIfAbsent: (| myview. eqnview. foo. bar. fizz. baz. loo. |)
  49.  
  50. viewManager shutdown
  51. pathCache refill
  52. aa views topView topViewInitialise.
  53. myview: aa topView copy
  54. 'copied...' print
  55. 'init...' print
  56. myview debugFlag: true
  57. myview name: 'An Algebra assistant named AA'
  58. 'named...' print
  59. myview realise
  60. 'realised...' print
  61. myview map
  62. 'mapped...' print
  63. myview display flush
  64.  
  65. foo: aa scalar create: '!a!' Boite: aa x11symbols symbolNamed: 'alpha'
  66. bar: aa scalar create: '!b!' Boite: aa x11symbols symbolNamed: 'beta'
  67. loo: aa scalar create: '!i!' Boite: aa x11symbols symbolNamed: 'iota'
  68. fizz: aa scalar create: '!c!' Boite: aa x11symbols symbolNamed: 'gamma'
  69.  
  70. baz: ((foo + fizz) / bar) * fizz 
  71. baz printLine
  72.  
  73. myview masterEquation: baz.
  74. myview stackEquationAt: 1 Put: ((foo * fizz) + loo).
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.